package org.meteorshower.employee_depart.util.enum_util;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.Getter;

@Getter
public enum PersonalStatusEnum implements IEnum<Integer> {

    //在岗
    NORMAL(0),
    //休息
    RELAX(1),
    //离职
    LEAVE(2),
    //休假
    SICK(3),
    //出差
    BUSINESS_TRIP(4),
    //退休
    RETIRE(5),
    //培训
    TRAINING(6);

    @EnumValue
    private final Integer Status;
    PersonalStatusEnum(Integer status){
        this.Status = status;
    }

    @Override
    public Integer getValue() {
        return Status;
    }
}
